﻿using SmartEnumDemo;

//var creditCard = CreditCard.FromValue(1);
var creditCard = CreditCard.FromName("Platinum");
Console.WriteLine($"Discount for {creditCard} is {creditCard.Discount:P}");
Console.ReadKey();